<?php $this->load->view('sys_header');?>

<div class="nav">
    <h2><a href="#">TAYCMS后台管理</a> > <a href="#">首页</a></h2>
</div>

<div style="margin-right: 20px;">

<div class="main_warp">
    <h1><img  class="icon" src="static/images/admin/admin_main_title_icon1.gif" width="34" height="28"  /><span>admin早上好，欢迎使用TAYCMS企业建站系统&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo made_admin_url('system/password/'.$this->S['admin']['id']); ?>"><font color="#3186c7">帐号设置</font></a></span></h1>
    <div class="tips">
        <img src="static/images/admin/admin_main_icon1.gif" width="22" height="21" /> <span>您已经登录<?php echo $this->S['admin']['logins'];?>次， 您上次登录的时间：<?php echo date('Y-m-d H:i:s',$this->S['admin']['lastlogintime'])?>  <span style="display: none;"> (不是您登录的？<a href="#"><font color="#3186c7">请点这里</font></a>)</span></span></div>


    <div class="diy_btn" style="display: none;">
        <div class="ml"></div>
        <ul>
            <li><a href="#"><img src="static/images/admin/admin_main_icon2.gif" width="31" height="33" /><p>模版设置</p></a></li>
            <li><a href="<?php echo made_admin_url('news/addnews');?>"><img src="static/images/admin/admin_main_icon3.gif" width="31" height="33" /><p>发布文章</p></a></li>
            <li><a href="#"><img src="static/images/admin/admin_main_icon4.gif" width="31" height="33" /><p>数据统计</p></a></li>
            <li style="display: none;"><a href="#"><img src="static/images/admin/admin_main_icon5.gif" width="31" height="33" /><p>文件上传</p></a></li>
            <li><a href="#"><img src="static/images/admin/admin_main_icon6.gif" width="31" height="33" /><p>文件管理</p></a></li>
            <li><a href="#"><img src="static/images/admin/admin_main_icon7.gif" width="31" height="33" /><p>信息查询</p></a></li>
            <div class="clear"></div>
        </ul>
        <div class="clear"></div>

        <div class="add_btn" style="display: none;"><a href="#">添加新的快捷功能</a></div>
    </div>

</div>


<div class="main_warp">
    <h1><img  class="icon" src="static/images/admin/admin_main_title_icon2.gif" width="34" height="28"  /> <span>TAYCMS官方信息</span></h1>

    <ul class="bbslist" id="bbshtml">

            远程数据载入中...

    </ul>
    <div class="clear"></div>
</div>


<div class="clear"></div>
<div class="ml" ></div>

<div class="main_warp2" >


    <h2><img src="static/images/admin/admin_main_sys_icon.gif" width="16" height="15" /> 系统信息</h2>

    <div class="sq">
        <ul>
            <li>本站所用版本:<?php echo TAYCMS_NAME.' for PHP '.TAYCMS_VERSION?></li>
            <li>程序授权类型：无授权信息 (如果您已经获取到商业授权，请点此验证授权！) </li>
            <div class="clear"></div>
        </ul> <div class="clear"></div>
    </div>

    <?php
    date_default_timezone_set('Asia/Shanghai');//此句用于消除时间差
    $stime = date('Y-m-d H:i:s'); //系统当前时间

    // 检测函数支持
    function isfun($funName = '')
    {
        if (!$funName || trim($funName) == '' || preg_match('~[^a-z0-9\_]+~i', $funName, $tmp)) return '错误';
        return (false !== function_exists($funName)) ? '<font color="green">√</font>' : '<font color="red">×</font>';
    }
    //检测PHP设置参数
    function show($varName)
    {
        switch($result = get_cfg_var($varName))
        {
            case 0:
                return '<font color="red">×</font>';
                break;

            case 1:
                return '<font color="green">√</font>';
                break;

            default:
                return $result;
                break;
        }
    }
    ?>
    <div class="sys_info">
        <ul>
            <li>服务器域名/IP：<?php echo $_SERVER['SERVER_NAME'];?>(<?php if('/'==DIRECTORY_SEPARATOR){echo $_SERVER['SERVER_ADDR'];}else{echo @gethostbyname($_SERVER['SERVER_NAME']);} ?>)</li>
            <li>服务器当前时间：<?php echo $stime?></li>
            <li>服务器主机名：<?php $os = explode(" ", php_uname()); ?><?php if('/'==DIRECTORY_SEPARATOR ){echo $os[1];}else{echo $os[2];} ?></li>
            <li>操作系统：  <?php echo $os[0];?> 内核版本：<?php if('/'==DIRECTORY_SEPARATOR){echo $os[2];}else{echo $os[1];} ?></li>
            <li>数据库支持：<?php echo isfun("mysql_close");?>
                <?php
                if(function_exists("mysql_get_server_info")) {
                    $s = @mysql_get_server_info();
                    $s = $s ? '&nbsp; mysql_server 版本：'.$s : '';
                    $c = '&nbsp; mysql_client 版本：'.@mysql_get_client_info();
                    echo $s;
                }
                ?></li>
            <li>PHP支持：<?php echo PHP_VERSION;?> (<a href="<?php echo made_admin_url('main/mainfra?act=phpinfo');?>" >PHPINFO</a>)</li>
            <li>服务器解译引擎：<?php echo $_SERVER['SERVER_SOFTWARE'];?></li>
            <li>GD库支持：<?php
                if(@function_exists(gd_info)) {
                    $gd_info = @gd_info();
                    echo $gd_info["GD Version"];
                }else{echo '<font color="red">×</font>';}
                ?></li>
            <li>Zend版本：<?php $zend_version = zend_version();if(empty($zend_version)){echo '<font color=red>×</font>';}else{echo $zend_version;}?></li>
            <li>服务器端口：<?php echo $_SERVER['SERVER_PORT'];?></li>
            <li>上传最大限制：<?php echo show("post_max_size");?></li>
            <li>绝对路径：<?php echo $_SERVER['DOCUMENT_ROOT']?str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']):str_replace('\\','/',dirname(__FILE__));?></li>
            <li></li> <div class="clear"></div>
        </ul>
    </div>


</div>


<div class="ml"></div>
<div class="main_warp2">

    <h2><img src="static/images/admin/admin_main_sys_icon.gif" width="16" height="15" /> 官方信息</h2>

    <div class="sq">
    </div>


    <div class="sys_info">
        <ul>
            <li class="clear">技术支持：TayGod团队</li>
            <li class="clear">程序制作：T.L,Mr.Zhao,风之浪子</li>
            <li class="clear">商业支持：2486669,17165391</li>
            <li class="clear">公司主页：<a href="http://www.taycms.com" target="_blank" >http://www.taycms.com</a></li>
            <li class="clear">交流论坛：<a href="http://www.taygod.com" target="_blank" >http://www.taygod.com</a></li>

            <li></li> <div class="clear"></div>
        </ul>
    </div>


</div>

</div>


<span id="bbs_list_"><script type="text/javascript" src="http://bbs.taygod.com/api.php?mod=js&bid=4" charset="gb2312"></script><div class="clear"></div>
</span>

    <script type="text/javascript">
        $(function(){

            $("#bbshtml").html($("#bbs_list_").html());

            $("#bbs_list_").html('');
        });

    </script>

<?php $this->load->view('sys_footer');?>